package com.example.demo.services.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.example.demo.Mapper.UserMapper;
import com.example.demo.entity.User;
import com.example.demo.services.IUserService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Fyly
 * @since 2019-02-20
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    public User getUserById(int id){
        return  baseMapper.selectById(id);
    }

}
